<?php

namespace app\controller;

use app\BaseController;
use think\facade\Env;

class Index extends BaseController
{
  public function index()
  {
    return '<h1>江西信息学院PHP学习</h1>';
  }

  public function haha()
  {
    return '<h1>哈哈, 我满分！</h1>';
  }

  public function hello($name = 'ThinkPHP6')
  {
    return 'hello,' . $name;
  }
  public function getConfig()
  {
    echo Env::get("database.username") . "</br>";
    echo Env::get("database.username");
  }
}
